<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fns.tld" prefix="fns" %>
<!DOCTYPE HTML>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <jsp:include page="/resources/inc/head.jsp"/>
    <link href="${basePath}/resources/zheng-admin/css/layui-admin.css" rel="stylesheet"/>
    <style>
        .layadmin-text p {
            text-indent: 0em;
        }
    </style>
</head>
<div class="layui-fluid" id="LAY-app-message-detail">
    <div class="layui-card layuiAdmin-msg-detail">
        <div class="layui-card-header"><h1>发布人：${notice.username}</h1>
            <p>
                <span>发布时间：${notice.send_time}</span>
            </p></div>
        <div class="layui-card-body layui-text">
            <div class="layadmin-text"><p></p>
                <p>${notice.content}
                </p>
            </div>
        </div>
    </div>
    <c:if test="${!empty files}">
        <div>附件：
            <div style="margin: 10px">
                <c:forEach items="${files}" var="file">
                    <div><a target="_blank" href="${file.path}?attachment=${file.fileName}">${file.fileName}</a></div>
                </c:forEach>
            </div>
        </div>
    </c:if>
</div>
<body>
</body>
</html>
